FROM openjdk:25-jdk

# 设置工作目录
WORKDIR /app

# 添加jar包
ADD target/file-1.0.0.jar app.jar

# 声明端口
EXPOSE 8093

# 健康检查
HEALTHCHECK CMD curl -f http://localhost:8093/file/status/health || exit 1

# 添加启动命令
CMD ["java", "-jar", "app.jar"]